/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mascotikas.client;

import com.smartgwt.client.widgets.tile.TileGrid;
import com.smartgwt.client.widgets.viewer.DetailViewerField;

/**
 *
 * @author Unisysad
 */
public class TileCategorias extends TileGrid {

    public TileCategorias() {

        setTileWidth(250);
        setTileHeight(500);
        setShowAllRecords(true);
        setAutoFetchData(true);
        setAnimateTileChange(true);
        DetailViewerField pictureField = new DetailViewerField("picture");
        DetailViewerField commonNameField = new DetailViewerField("commonName");
        commonNameField.setCellStyle("commonName");
        setFields(pictureField, commonNameField);
    }
}
